package com.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.demo.entity.Vacation;
import com.example.demo.entity.dto.PageQuery;

import java.util.List;

public interface VacationService {
    // 查询所有考勤信息
    List<Vacation> getAllVacation();
    // 根据考勤信息编号查询考勤信息
    List<Vacation> getVacationByNumber(int number);
    // 添加考勤信息
    boolean addVacation(Vacation vacation);
    // 更新考勤信息
    boolean updateVacation(Vacation vacation);
    IPage<Vacation> page(PageQuery pageQuery);
}